# PiCalc MAKEFILE

source = main.c borwein.c monteCarlo.c gaussLegendre.c blackScholes.c utils.c
exec = PiCalc

link_libs = -lpthread -lgmp -lm
flags = -Wall -g

# Flag - Ativa calculo do tempo durante execucao
#CALC_TIME=-DCALCULATE_TIME

# Random de BoxMuller nao eh compativel com Windows.
# Windows  Config #
#gmpdir = C:/Users/Mateus/Mateus/Cpp/RESOURCES/gmp-6.0.0/build_install
#include_dir = -I$(gmpdir)/include
#lib_dir = -L$(gmpdir)/lib
# # # # # # # # # #

all: linux

linux:
	gcc -o $(exec) $(source) $(link_libs) $(CALC_TIME) $(flags)

#windows:
#	gcc -o $(exec) $(source) $(include_dir) $(lib_dir) $(link_libs) $(CALC_TIME) $(flags)
